<{include file="Public/top.html" }>
</head>
<div id="warpper">
    <div class="content">
        <div class="location">卡券管理</div>
        <{include file="Card/nav.html"}>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" class="ui-form reportForm">
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">关键字</label>
                        <input type="text" class="ui-text bg-text keyword" placeholder="" />
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="button" class="ui-button">查询</button>
                    </div>
                </form>
            </div>
        </div>

        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                <tr>
                    <th class="pct10">卡券名</th>
                    <th class="pct10">生成者</th>
                    <th class="pct10">库存</th>
                    <th class="pct10">上线期数</th>
                    <th class="pct10">投放数量</th>
                    <th class="pct10">领取人数</th>
                    <th class="pct15 last-col">操作</th>
                </tr>
                </thead>
                <tbody>
                <{foreach from = $list item=item}>
                <tr>
                    <td><{$item.title}></td>
                    <td><{$item.authorName}></td>
                    <td><{$item.stock}></td>
                    <td><{$item.onlineNum}></td>
                    <td><{$item.launchNum}></td>
                    <td></td>
                    <td class="ta_l">
                        <div class="hanfdler">
                            <a href="<{u('Card/record?id='|cat:$item['id'])}>">使用记录</a>
                            <span class="sep">|</span>
                            <a href="<{u('Card/edit?id='|cat:$item['id'])}>">修改</a>
                            <span class="sep">|</span>
                            <{if $item.status == $smarty.const.ENABLE_ENABLE}>
                            <a href="<{u('cardUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定不启用该卡券么？'))return false;">已启用</a>
                            <{else}>
                            <a href="<{u('cardUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定启用该卡券么？'))return false;">未启用</a>
                            <{/if}>
                        </div>
                    </td>
                </tr>
                <{/foreach}>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <{include file="Public/page.html"}>
        </div>
    </div>
</div>
<body>
<{include file="Public/foot.html" }>